package com.heima.model.comment.dtos;

import lombok.Data;

import java.util.Date;

@Data
public class CommentRepayDto {
    private String commentId;
    private Date minDate;
    private Integer size;

    public void checkParam() {
        if (this.size == null || this.size < 0 || this.size > 100) {
            setSize(10);
        }
    }
}
